package com.titanrise.crm.domain.model;

import com.titanrise.crm.environment.annotation.TableColumn;
import com.titanrise.crm.environment.annotation.TableID;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @Description:
 * @Author: pront
 * @Time:2024-11-25 21:22
 */
@Data
@Builder
@AllArgsConstructor
public class Product {

    /**
     * id
     */
    @TableID("id")
    private String id;

    /**
     * 商品名称
     */
    @TableColumn("sku_name")
    private String skuName;


    /**
     * 商品价格
     */
    @TableColumn("sku_price")
    private BigDecimal skuPrice;

    /**
     * 商品库存
     */
    @TableColumn("stock")
    private int stock;

    /**
     * 商品描述
     */
    @TableColumn("sku_desc")
    private String skuDesc;

    /**
     * 商品标题
     */
    @TableColumn("sku_title")
    private String skuTitle;

    /**
     * 商品分类
     */
    @TableColumn("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableColumn("update_time")
    private LocalDateTime updateTime;


}
